<?php

class Core_Backend_Component_Subject_View_Concessions_Preview extends Core_Backend_Share_View_Form {

	protected function buildToolbar($toolbar) {
		$group = $toolbar->createGroup('back');
		$group->addLink($this->getHistoryUrl('subject/concessions/index'), $this->__('share.button.back'));
		$group = $toolbar->createGroup('status');
		$group->addLink($this->getUrl(array('status'=>'published','ids'=>$this->concessions->getId()), 'review') , $this->__('share.button.publish'));
		$group->addLink($this->getUrl(array('status'=>'forbidden','ids'=>$this->concessions->getId()), 'review') , $this->__('share.button.forbid'));
		$group = $toolbar->createGroup('delete');
		$group->addLink($this->getUrl(array('ids'=>$this->concessions->getId()), 'deleteConcessions') , $this->__('share.button.delete'));
	}

	public function render(){
		$this->getTemplate()->assign('concessions', $this->concessions);
		return parent::render();;
	}

}